<style type="text/css">
    .header{padding:10px 0 10px 15px;}
    .content{padding-left: 10px;}
    .content ul:after{clear: both;float:none;content: '';height:0;}
    .content ul li{float:left;padding-right: 10px;height:22px;width:90px;}
    .content ul li p{text-align: left;float:left;text-overflow: ellipsis;overflow: hidden;}
    .content ul li input{float:left;}
</style>
<div class="goodslist">
    <div class="header clearfix">
        &nbsp;&nbsp;用户名 :<input type="text" name="q" id="q" class="input-text" size="10" />
        <input type="button" class="btn btn_submit" name="dosubmit" id="dosubmit" value="提&nbsp;&nbsp;交">
    </div>
    <div class="content">
        <ul id="sitelist" class="clearfix">
            <volist name="result" id="vo">
                <li>
                    <p title="{$vo.username}">{$vo.username}</p>
                    <input type="{$type}" value="{$vo.id}" class="ckbox" name="userid" />
                </li>
            </volist>
        </ul>
        <div id="pages">{$pages}</div>
    </div>
</div>
<script type="text/javascript">
    var menuid={$menuid};
    var arr   = [];

    $(function(){
        $("#dosubmit").click(function(){
            getData(1);
        });
    });
    function getData(page){
        var param = {'m':'Admin','c':'User','a':'ajaxSelectUser','q':$("#q").val(),'menuid':menuid,'page':page};
        var url   = "/admin.php";
        var boxtype  = "{$type}";
        $.get(url,param,function(result){
            var str = '';
            if(result['status']==1){
                var data = result['data']['data'];
                for(var i in data){
                    var r = data[i];
                    str += '<li><p title="'+r['username']+'">'+r['username']+'</p><input type="'+boxtype+'" value="'+r['id']+'" class="ckbox" name="userid" /></li>'
                }
                $("#sitelist").html(str);
            }
            $("#pages").html(result['data']['page']);
        });
    }
</script>